package com.ruoyi.statistics.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.statistics.mapper.StatisticsInstallMapper;
import com.ruoyi.statistics.domain.StatisticsInstall;
import com.ruoyi.statistics.service.IStatisticsInstallService;
import com.ruoyi.common.core.text.Convert;

/**
 * 软件安装 服务层实现
 * 
 * @author ruoyi
 * @date 2019-11-11
 */
@Service
public class StatisticsInstallServiceImpl implements IStatisticsInstallService 
{
	@Autowired
	private StatisticsInstallMapper statisticsInstallMapper;

	/**
     * 查询软件安装信息
     * 
     * @param id 软件安装ID
     * @return 软件安装信息
     */
    @Override
	public StatisticsInstall selectStatisticsInstallById(Long id)
	{
	    return statisticsInstallMapper.selectStatisticsInstallById(id);
	}
	
	/**
     * 查询软件安装列表
     * 
     * @param statisticsInstall 软件安装信息
     * @return 软件安装集合
     */
	@Override
	public List<StatisticsInstall> selectStatisticsInstallList(StatisticsInstall statisticsInstall)
	{
	    return statisticsInstallMapper.selectStatisticsInstallList(statisticsInstall);
	}
	
    /**
     * 新增软件安装
     * 
     * @param statisticsInstall 软件安装信息
     * @return 结果
     */
	@Override
	public int insertStatisticsInstall(StatisticsInstall statisticsInstall)
	{
	    return statisticsInstallMapper.insertStatisticsInstall(statisticsInstall);
	}
	
	/**
     * 修改软件安装
     * 
     * @param statisticsInstall 软件安装信息
     * @return 结果
     */
	@Override
	public int updateStatisticsInstall(StatisticsInstall statisticsInstall)
	{
	    return statisticsInstallMapper.updateStatisticsInstall(statisticsInstall);
	}

	/**
     * 删除软件安装对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteStatisticsInstallByIds(String ids)
	{
		return statisticsInstallMapper.deleteStatisticsInstallByIds(Convert.toStrArray(ids));
	}
	
}
